package tech.runchen.gz5055.oms.modules.system.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 退货单信息表
 * </p>
 *
 * @author zzj
 * @since 2023-12-20
 */
@Getter
@Setter
@TableName("return_order_tb")
@ApiModel(value = "ReturnOrderEntity对象", description = "退货单信息表")
public class ReturnOrderEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("创建人")
    private String createBy;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新人")
    private String updateBy;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("退货单号")
    private String returnOrderNumber;

    @ApiModelProperty("订单ID")
    private Long orderId;

    @ApiModelProperty("发起时间")
    private Long initiateTime;

    @ApiModelProperty("发起用户ID")
    private Long initiateUserId;

    @ApiModelProperty("发起用户昵称")
    private String initiateUserName;

    @ApiModelProperty("确认时间")
    private Long confirmOrderTime;

    @ApiModelProperty("确认用户ID")
    private Long confirmOrderUserId;

    @ApiModelProperty("确认用户昵称")
    private String confirmOrderUserName;

    @ApiModelProperty("确认装货时间")
    private Long confirmLoadTime;

    @ApiModelProperty("确认装货用户ID")
    private Long confirmLoadUserId;

    @ApiModelProperty("确认装货用户昵称")
    private String confirmLoadUserName;

    @ApiModelProperty("取货地址")
    private String pickupAddress;

    @ApiModelProperty("取货地址ID")
    private Long pickupAddressId;

    @ApiModelProperty("取货方式（0-机器人 1-人工")
    private String pickupMethod;

    @ApiModelProperty("取货人")
    private String pickupBy;

    @ApiModelProperty("核验用户昵称")
    private String checkUserName;

    @ApiModelProperty("核验用户ID")
    private Long checkUserId;

    @ApiModelProperty("完成时间")
    private Long doneTime;

    @ApiModelProperty("状态（0-发起 1-确认 2-装车 3-核验 4-取消")
    private Integer status;

    @ApiModelProperty("删除标志（0代表存在 2代表删除）")
    private Integer delFlag;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("退货单明细")
    @TableField(exist = false)
    private List<ReturnOrderDetailEntity> returnOrderDetailList;
}
